package day11;

import java.text.ParseException;
import java.util.concurrent.TimeoutException;

/*
* throws
* throw
* */
public class Test3 {
    public static void main(String[] args) throws ParseException {
        try {
            sayHi(null);
        } catch (Exception e) {
        }
        System.out.println("main end");
    }
    public static void sayHi(String message) throws Exception {
        if(null == message) {
            throw new Exception();
        }
        System.out.println("你打印的消息为：" + message);
        System.out.println("后续代码");
    }
}
